package com.nine.pattern.factory.abstract_factory;

/**
 * @author nine
 * @version 1.0
 * @description TODO
 * @date 2024-07-01 23:13
 */
public class TestClient {
	public static void main(String[] args) {

		// DessertFactory facotry = new ItalyDessertFacotry();
		DessertFactory facotry = new AmericanDessertFactory();

		Coffee coffee = facotry.createCoffee();
		Dessert dessert = facotry.createDessert();

		System.out.println(coffee.getName());
		dessert.show();

	}
}
